﻿$(document).ready(function () {
    $("input[number]").keypress(function (e) {
        if ((e.which >= 48 && e.which <= 57) || (e.which == 8)) {
            return true;
        }
        else {
            return false;
        }
    });

    $("input[multinumber]").keypress(function (e) {
        if ((e.which >= 48 && e.which <= 57) || (e.which == 8) || (e.which == 44)) {
            return true;
        }
        else {
            return false;
        }
    });
});